package com.javasm.service.B2cOrderService.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.javasm.domin.criteria.orderCriteria.OrderGoodsCriteria;
import com.javasm.domin.criteria.orderCriteria.OrderReceiveCriteria;
import com.javasm.domin.entity.orderEntity.B2cOrderGoods;
import com.javasm.domin.entity.orderEntity.B2cReceiver;
import com.javasm.mapper.B2cOrderMapper.B2cReceiverMapper;
import com.javasm.service.B2cOrderService.B2cReceiverService;
import jdk.internal.org.objectweb.asm.tree.FieldInsnNode;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
* @author Administrator
* @description 针对表【b2c_receiver】的数据库操作Service实现
* @createDate 2021-11-22 17:03:19
*/
@Service
@RequiredArgsConstructor
public class B2cReceiverServiceImpl extends ServiceImpl<B2cReceiverMapper, B2cReceiver> implements B2cReceiverService {
    private final B2cReceiverMapper b2cReceiverMapper;


    @Override
    public B2cReceiver findByOrderId(OrderReceiveCriteria orderReceiveCriteria) {
//        LambdaQueryWrapper<B2cReceiver> lambda = new LambdaQueryWrapper<B2cReceiver>();
//        if (!StringUtils.isEmpty(orderReceiveCriteria.getOrderId())){
//            lambda.eq(B2cReceiver::getOrderId,orderReceiveCriteria.getOrderId());
//        }
//        B2cReceiver b2cReceiver = b2cReceiverMapper.selectOne(lambda);
        return null ;
    }
}
